import request from '/@/utils/request';
/**
 * 权限页面接口集合
 * @method signIn 用户登录
 */

//账户列表接口封装
export function accountApi() {
	return {
		signIn: (data: object) => {
			return request({
				url: '/auth/admin/index',
				method: 'post',
				data,
			});
		},
	};
}

// 账户删除接口封装
export function accountDeleteApi() {
	return {
		signIn: (data: object) => {
			return request({
				url: '/auth/admin/del',
				method: 'post',
				data,
			});
		},
	};
}

// 账户详情接口封装
export function accountDetailApi() {
	return {
		signIn: (data: object) => {
			return request({
				url: '/auth/admin/roles',
				method: 'post',
				data,
			});
		},
	};
}

// 账户新增编辑接口封装
export function accountAddEditApi() {
	return {
		signIn: (data: object) => {
			return request({
				url: '/auth/admin/add',
				method: 'post',
				data,
			});
		},
	};
}